package com.music.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Comment {
    private Integer cid;

    private String text;

    private Integer uid;

    private Date createTime;

    private Integer mid;

    private Integer parentCid;

    private SingleSong song;

    private UserInfo userInfo;

    private List<Comment> comments;

    private String createTimeStr;

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text == null ? null : text.trim();
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getMid() {
        return mid;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public Integer getParentCid() {
        return parentCid;
    }

    public void setParentCid(Integer parentCid) {
        this.parentCid = parentCid;
    }

    public SingleSong getSong() {
        return song;
    }

    public void setSong(SingleSong song) {
        this.song = song;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public List<Comment> getComments() {
        return comments;
    }

    public void setComments(List<Comment> comments) {
        this.comments = comments;
    }

    public String getCreateTimeStr() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-dd-MM");
        return sdf.format(this.createTime);
    }
}